package cn.kpi.service.civilass.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kpi.dao.civilass.CivilAssKpDao;
import cn.kpi.entity.civilass.CATempDetailEntity;
import cn.kpi.service.civilass.ICivilAssKpService;

@Service
public class CivilAssKpServiceImpl implements ICivilAssKpService{
	
	@Autowired
	private CivilAssKpDao civilAssKpDao;

	public List<CATempDetailEntity> GetItemListByStatus()throws Exception{
		try{
			return civilAssKpDao.GetItemListByStatus();
		}
		catch(Exception ex){
			ex.printStackTrace();
			return null;
		}
	}
	 
	 public List<Map> GetTempOrgListByTempId(Long tempid,String columns)throws Exception{
		 try{
				return civilAssKpDao.GetTempOrgListByTempId(tempid,columns);
			}
			catch(Exception ex){
				ex.printStackTrace();
				return null;
			}
	 }
}
